﻿using System.Collections.Generic;
using Calimbra.Runtime.Contracts;

namespace Calimbra.Runtime.Functions
{
    public class Add_operation
    {
        private IDictionary<string, IOperation> operations;

        public void Process(IOperation operation)
        {
            operations.Add(operation.Name, operation);
        }

        public void Inject(IDictionary<string, IOperation> dependentOperations)
        {
            operations = dependentOperations;
        }
    }
}